package cn.itlaobing.eshopmanagement.controller;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.itlaobing.eshopmanagement.entity.Activity;
import cn.itlaobing.eshopmanagement.service.ActivityService;

@Controller
@RequestMapping("/offPrice")
public class OffPriceController extends BaseController{
	@Autowired
	private ActivityService activityService;
	
	@GetMapping
	public String index(Model model){
		List<Activity> list=activityService.findBySearchFilter(new HashMap<String,String>());
		model.addAttribute("schedule", list);
		return "/offPrice/index";
	}
	
	
}
